import request from "@/utils/request";

// /staff/listWithOil只获取油站员工列表(包含油品)
export function listWithOil(query) {
  return request({
    url: "/payApi/staff/listWithOil",
    method: "get",
    params: query,
  });
}

// // /staff/list获取油枪员工列表
// export function listApi(query) {
//   return request({
//     url: "/payApi/staff/list",
//     method: "get",
//     params: query
//   });
// }

// GET/coupon/user/listByPhone手机号查优惠券列表
export function listByPhone(query) {
  return request({
    url: "/coupon/user/listByPhone",
    method: "get",
    params: query,
  });
}

// POST/appUser/order/cardList储值卡列表
export function cardList(data) {
  return request({
    url: "/payApi/appUser/order/cardList",
    method: "post",
    data: data,
  });
}

// POST/appUser/order/create创建订单
export function create(data) {
  return request({
    url: "/payApi/appUser/order/create",
    method: "post",
    data: data,
  });
}

// POST/appUser/order/pay支付
export function pay(data) {
  return request({
    url: "/payApi/appUser/order/pay",
    method: "post",
    data: data,
  });
}

// POST/appUser/order/update更新订单
export function update(data) {
  return request({
    url: "/payApi/appUser/order/update",
    method: "post",
    data: data,
  });
}
